<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <strong>sss</strong>
</body>
</html>
<script>
    //实现将strong标签的值替换成正确的值
    function fn(){
        let d=new Date();
        //要加补零处理！！！
        let time=d.getHours()+":"+d.getMinutes()+":"+d.getDate();
        console.log(time);
        document.querySelector('strong').innerHTML=time;

    }
    fn();
</script>